#ifndef __IR_H__
#define __IR_H__

#if defined (__AVR_ATmega644P__)
#else
#error the ir library is supported for the configured microcontroller
#endif

#include <adc/adc.h>

/**
 *  IR initialization
 */
void IR_init(void);

/**
 *  IR register event
 */
void IR_reg(void (*event)(uint16_t result));

/**
 *  IR read
 */
void IR_read(uint8_t pin);


#endif // __IR_H__